/*
 * Date：11/11/18 9:51 PM
 * Author: guomw
 *
 */

package com.treasure.mall.biz.service.core.sms;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.treasure.mall.zbq.common.ienum.sms.SmsTemplateSceneType;
import lombok.Data;

/**
 * @author guomw
 * @date 11/11/2018
 */
@Data
public class SmsVerifyCodeTemplate implements BaseSmsTemplate {

    @JsonIgnore
    private SmsTemplateSceneType sceneType;
    /**
     * 验证码
     */
    private String code;

    public SmsVerifyCodeTemplate(SmsTemplateSceneType smsTemplateSceneType) {
        sceneType = smsTemplateSceneType;
    }

    @JsonIgnore
    @Override
    public String getTemplateContent() {
        JSONObject object = new JSONObject();
        object.put("code", this.code);
        return object.toJSONString();
    }

}
